﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MainApp
{
    public partial class settings : Form
    {
        string LOCATION = AppDomain.CurrentDomain.BaseDirectory;
        public settings()
        {
            InitializeComponent();
            
            try
            {
                ds_settings.ReadXml(LOCATION + "settings.xml");
            }
            catch (System.IO.FileNotFoundException)
            {
                

            }
        }

        private void b_save_Click(object sender, EventArgs e)
        {
            ds_settings.WriteXml(LOCATION + "settings.xml");
        }

        private void b_reload_Click(object sender, EventArgs e)
        {
            try
            {
                ds_settings.ReadXml(LOCATION + "settings.xml");
            }
            catch (System.IO.FileNotFoundException)
            {


            }
        }

        private void tabPage1_Click(object sender, EventArgs e)
        {

        }
    }
}
